<template>
  <div>
    <el-form ref="form" :model="form" label-width="200px">
      <el-form-item label="商品标题">
        <el-input class="w300" v-model="form.goods_title"></el-input>
      </el-form-item>
      <el-form-item label="商品数量">
        <el-input class="w200" v-model="form.number"></el-input>
      </el-form-item>
      <el-form-item label="积分兑换所需个数">
        <el-input class="w200" v-model="form.integral"></el-input>
      </el-form-item>
      <el-form-item label="订单号">
        <el-input class="w200" v-model="form.order_code"></el-input>
      </el-form-item>
      <el-form-item label="提货单号">
        <el-input class="w200" v-model="form.pick_up_code"></el-input>
      </el-form-item>
      <el-form-item label="物流公司编码">
        <el-input class="w200" v-model="form.logistics_company_code"></el-input>
      </el-form-item>
      <el-form-item label="物流公司名称">
        <el-input class="w200" v-model="form.logistics_company_name"></el-input>
      </el-form-item>
      <el-form-item label="运单号">
        <el-input class="w200" v-model="form.waybill_number"></el-input>
      </el-form-item>
      <el-form-item label="收货人名称">
        <el-input class="w200" v-model="form.pick_up_name"></el-input>
      </el-form-item>
      <el-form-item label="收货人电话">
        <el-input class="w200" v-model="form.pick_up_phone"></el-input>
      </el-form-item>
      <el-form-item label="收货人地址">
        <el-input class="w300" type="textarea" v-model="form.pick_up_address" autosize></el-input>
      </el-form-item>
      <el-form-item label="收货人备注">
        <el-input class="w300" type="textarea" v-model="form.pick_up_remark" autosize></el-input>
      </el-form-item>
      <el-form-item label="是否已提货">
        <el-radio-group v-model="form.is_pick">
          <el-radio :label="0">否</el-radio>
          <el-radio :label="1">是</el-radio>
        </el-radio-group>
      </el-form-item>
      <el-form-item label="支付时间">
        <el-date-picker v-model="form.pay_time" type="datetime" disabled></el-date-picker>
      </el-form-item>
      <el-form-item label="发货时间">
        <el-date-picker v-model="form.shipments_time" type="datetime" disabled></el-date-picker>
      </el-form-item>
      <el-form-item label="创建时间">
        <el-date-picker v-model="form.create_time" type="datetime" disabled></el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button @click="goBack">返回</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import { mapState } from 'vuex'

  export default {
    data: function () {
      return {
      }
    },
    computed: {
      ...mapState({
        form: state => state.mallorder.saveData
      })
    },
    methods: {
      goBack () {
        this.$router.go(-1)
      }
    }
  }
</script>

<style scoped>
  .w200 {
    width: 200px;
  }
  .w300 {
    width: 300px;
  }
</style>
